package com.spring.demo;

import org.aspectj.lang.JoinPoint;

public class LoggingAspect {

	public void beforeMethod(JoinPoint jp) {
		String methodName = jp.getSignature().getName();
		System.out.println("The [" + methodName + "] method begins ");

	}

	public void afterMethod(JoinPoint jp) {
		// ��ȡ������
		String methodName = jp.getSignature().getName();
		System.out.println("The [" + methodName + "] method ends");

	}

}
